import request from '@/utils/request'

// 保存请假单
export function getLeaveBill(id) {
  return request({
    url: '/buss/leave/get',
    method: 'get',
    params: { leaveId: id }
  })
}
// 保存请假单
export function saveLeaveBill(data) {
  return request({
    url: '/buss/leave/save',
    method: 'post',
    data: data
  })
}

// 删除请假单
export function deleteLeaveBill(ids) {
  return request({
    url: '/buss/leave/delete',
    method: 'delete',
    data: { ids: ids }
  })
}
// 提交请假单
export function submitLeaveBill(id) {
  return request({
    url: '/buss/leave/startWorkflow',
    method: 'post',
    data: { id: id }
  })
}
